@script AddComponentMenu("Level4/Cameras/FollowCamera")
////////////////////////////////////
//简单跟随 摄影机
////////////////////////////////////

class FollowedCamera extends BaseCamera{
	var smoothSpeed:float = 0.2f;
	
	function Start(){
		super.Start();
	}

	function Update(){
		tr.position = Vector3.Lerp(tr.position,target.position + offsetDir + shakeDir,smoothSpeed);
	}
}
